
/**
 * 
 * @author wjp
 */
var utils = {
	
	/**
	 * 
	 * @param paramName
	 * @returns
	 */
	getParam : function(paramName){
		var url = decodeURI(location.href); 
        var paraString = url.substring(url.indexOf("?") + 1, url.length).split("&");  
        var paraObj = {}; 
        for (var i = 0; j = paraString[i]; i++) {  
            paraObj[j.substring(0, j.indexOf("=")).toLowerCase()] = j.substring(j.indexOf("=") + 1, j.length);  
        }  
        var returnValue = paraObj[paramName.toLowerCase()];  
        if (typeof (returnValue) == "undefined") {  
            return "";  
        } else {  
            return returnValue;  
        }  
	},
	
	/**
	 * 用法
	 * utils.getParam("参数名"); 
	 */
	
};








